import SvgIcon from './SvgIcon/index.vue';

// ElementPlusIconsVue;
// 引入eleplus的图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const components = SvgIcon;
export default {
  install(app) {
    Object.keys(components).forEach((key) => {
      app.component(key, components[key]);
      // 将element-plus的图标组件注册为全局
      for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component);
      }
    });
  },
};
